﻿using Domain.Models;
using Infrastructure.Events;
using System;

namespace Domain.Events
{
    public class DomainEvent : IntegrationEvent
    {
        public string Message { get; private set; }
        public GitLibaray GitLibaray { get; private set; }
        public DomainEvent(GitLibaray gitLibaray, string message) : base()
        {
            GitLibaray = gitLibaray ?? throw new ArgumentNullException(nameof(gitLibaray));
            Message = message ?? throw new ArgumentNullException(nameof(message));
        }
    }
}
